Make debug messages work earlier
authorMatthias Clasen <mclasen@redhat.com>
Tue, 6 Mar 2018 23:57:16 +0000 (18:57 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 7 Mar 2018 01:54:26 +0000 (20:54 -0500)
We need to be able to produce debug output during module
loading. This change ensures that we can.

gtk/gtkmain.c

index 14e2bd0b11400d83645fd63c131ee39a6bd33ed1..395a470c57139ad64bde4b08d7cb34b83fdb3419 100644 (file)
@@ -629,10 +629,10 @@ gettext_initialization (void)
 static void
 default_display_notify_cb (GdkDisplayManager *dm)
 {
+  debug_flags[0].display = gdk_display_get_default ();
   gtk_print_backends_init ();
   gtk_im_modules_init ();
   _gtk_accessibility_init ();
-  debug_flags[0].display = gdk_display_get_default ();
 }
 
 static void